package com.sh.healthtv.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Window;
import android.view.WindowManager;

import com.sh.healthtv.app.AppManager;
import com.sh.healthtv.net.service.envelop.PolyManager;


/**
 * Created by zhouyucheng on 2017/7/11.
 */

public class BaseActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        AppManager.getAppManager().addActivity(this);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        PolyManager.Builder  builder=  new PolyManager.Builder();
        builder.portalAddress("http://192.168.1.11:9080/polymedicine");
        builder.terminalType("6");
        builder.regionCode("jktv-0-0");
        builder.build();
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onDestroy() {
        AppManager.getAppManager().finishActivity(this);
        super.onDestroy();
    }
}
